package Practice02;

public class test3 {
        public static void main (String args[ ])
        {
            int startPosition=0,endPosition=0;
            char cStart='α',cEnd='ω';
            startPosition=(int) cStart; //cStart做int型转换据运算，并将结果赋值给startPosition
            endPosition=(int) cEnd; //cEnd做int型转换运算，并将结果赋值给endPosition
            System.out.println("希腊字母表：");
            for(int i=startPosition;i<=endPosition;i++)
            {
                char c='\0';
                c = (char) i;//i做char型转换运算，并将结果赋值给c
                System.out.print(c+"\t");//空一格输出一个字符

                if((i-startPosition)%10 == 9)//每10个字符换一行
                    System.out.println("");
            }
        }
    public class GreekAlphabet
    {
    }
}
